package com.nineclock.document;


import com.nineclock.common.entity.PageResult;
import com.nineclock.common.entity.Result;
import com.nineclock.document.dto.DocFileDto;
import com.nineclock.document.dto.DocFileHistoryDto;
import com.nineclock.document.dto.DocFolderDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Api(value = "文档服务接口",tags = "文档服务")
public interface DocumentControllerApi {
	@ApiOperation(value ="查询文件历史记录")
	public Result<List<DocFileHistoryDto>> queryDocHistory(String fileId);


	@ApiOperation(value = "封禁/解封文件")
	public Result fieldStatus(Long id, Short status);

    @ApiOperation(value = "分页查询文件列表")
    public Result<PageResult<DocFileDto>> PagingFile(Integer page, Integer pageSize, String keyword);

	@ApiOperation(value = "文件创建")
	public Result insertFile (DocFileDto docFileDto);

	@ApiOperation(value = "文件夹创建")
	public Result insertFolder(DocFolderDto docFolderDto);


}
